package log

import (
	"context"
	"shenmawl/api/log/v1"
)

func (c *ControllerV1) LoginLog(ctx context.Context, req *v1.LoginLogReq) (res *v1.LoginLogRes, err error) {
	logList, count, err := c.logs.GetLoginLogList(ctx)
	return &v1.LoginLogRes{
		Count: count,
		List:  logList,
	}, nil
}
